﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CustomImport
{
    /// <summary>
    /// 
    /// </summary>
    public class SerialCommunicationHook
    {
        private List<byte> _buffer;

        public void Write(byte[] buffer)
        {
            lock (_buffer)
            {
            }
        }

        public byte[] Read()
        {
            lock (_buffer)
            {
                byte[] read = _buffer.ToArray();
                _buffer.Clear();
                return read;
            }
        }
    }
}
